package cn.wolfcode.education.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
@Setter@Getter
public class Payroll {
    private Long id;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date month;             //月份
    private BigDecimal baseSalary;  //基本工资
    private Integer workDays;       //工作天数
    private Integer afterDays;      //迟到天数
    private Integer beforeDays;     //早退天数
    private Integer upDays;         //补签天数
    private BigDecimal finalSalary; //最终工资
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date payTime;           //结算日期
    private Employee employee;      //员工对象
}